<template>
    <div class="common-layout">
        <el-container class="lay-container">
            <!-- 左侧组件 -->
            <common-aside />
            <!-- 右侧组件 -->
            <el-container>
                <!-- 顶部导航 -->
                <el-header class="el-header">
                    <common-header />
                </el-header>
                <!-- tag标签 -->
                <common-tag />
                <!-- 内容展示区 -->
                <el-main class="right-main">
                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script setup lang="js">
import CommonAside from '../components/CommonAside.vue';
import CommonHeader from '../components/CommonHeader.vue';
import CommonTag from '../components/CommonTag.vue';
</script>

<style scoped lang="less">
.common-layout {
    height: 100%;

    .lay-container {
        height: 100%;
    }
}

.el-header {
    background-color: #333;
}
</style>